<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<div class="now">
		<a href="admin.php?mod=article&type=news" <!--{if($_g_type == 'news'):}-->class="sel"<!--{endif;}-->>资讯中心（{$tongji['news']}）<i></i></a>
		<a href="admin.php?mod=article&type=help" <!--{if($_g_type == 'help'):}-->class="sel"<!--{endif;}-->>帮助中心（{$tongji['help']}）<i></i></a>
		<a href="admin.php?mod=article&act=add&type={$_g_type}" id="fabu">添加文章</a>
		<div class="clear"></div>
	</div>
	<div class="right_main">
		<div class="search">
			<form method="get">
				<input type="hidden" name="mod" value="{$_g_mod}" />
				<input type="hidden" name="type" value="{$_g_type}" />
				文章名称：<input type="text" name="name" value="{$_g_name}" class="inputtext input200" />
				<select name="category_id" class="selectmini">
				<option value="">= 所有分类 =</option>
				<!--{$selnum=1;}-->
				<!--{foreach($cache_category_arr[$_g_type] as $v):}-->
				<option value="{$v['category_id']}" <!--{if($_g_category_id==$v['category_id']):}-->selected="selected"<!--{endif;}-->>{$selnum++}){$v['category_name']}</option>
				<!--{endforeach;}-->
				</select>
				<input type="submit" value="搜索" class="input_btn" />
			</form>
		</div>
		<form method="post" id="form">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
		<tr>
			<th class="bgtt" width="20"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'article_id')" /></th>
			<th class="bgtt" width="50">ID号</th>
			<th class="bgtt left">文章名称</th>
			<th class="bgtt" width="150">分类名称</th>
			<th class="bgtt" width="120">发布日期</th>
			<th class="bgtt" width="100">浏览量</th>
			<th class="bgtt" width="110">操作</th>
		</tr>
		<!--{foreach($info_list as $v):}-->
		<tr>
			<td><input type="checkbox" name="article_id[]" value="{$v['article_id']}"></td>
			<td>{$v['article_id']}</td>
			<td class="left"><a href="{pe_url('article-'.$v['article_id'])}" target="_blank">{$v['article_name']}</a></td>
			<td>{$cache_category[$v['category_id']]['category_name']}</td>
			<td>{pe_date($v['article_atime'])}</td>
			<td>{$v['article_clicknum']}</td>
			<td>
				<a href="admin.php?mod=article&act=edit&id={$v['article_id']}&{pe_jump()}" class="admin_edit mar3">修改</a>
				<a href="javascript:pe_confirm('删除', 'admin.php?mod=article&act=del&id={$v['article_id']}&token={$pe_token}')" class="admin_del">删除</a>
			</td>
		</tr>
		<!--{endforeach;}-->
		</table>
		</form>
	</div>
	<div class="right_bottom">
		<span class="fl">
			<input type="checkbox" name="checkall" onclick="pe_checkall(this, 'article_id')" />
			<input type="button" onclick="pe_checksel('article_id') && pe_confirm('批量删除', 'admin.php?mod=article&act=del&token={$pe_token}', true)" value="批量删除" />
		</span>
		<span class="fr fenye">{$db->page->html}</span>
		<div class="clear"></div>
	</div>
</div>
<!--{include(pe_tpl('footer.html'));}-->